namespace ScrumSprintMonitor.UI.Wpf.Avatars
{
    #region #using Directives

    using System;
    using System.ComponentModel.Composition;

    using Infrastructure;

    using PreEmptive.Attributes;

    #endregion

    [Export(typeof(IAvatarProvider))]
    internal class LocalPictureAvatarProvider : IAvatarProvider
    {
        #region IAvatarProvider Members

        public string ProviderId
        {
            get { return "picture"; }
        }

        [Feature("Avatar - Local picture")]
        public IAvatar GetAvatar(string avatarKey)
        {
            return new WpfUriAvatar(new Uri(avatarKey, UriKind.RelativeOrAbsolute));
        }

        #endregion
    }
}